package com.yuanheng100.asset.consts.person;

/**
 * 婚姻定义 根据GB/T 2261.1-2003
 */
public enum MarriageStatus
{
    SINGLE((short)10,"未婚"),

    MARRIED((short)20,"已婚"),

    FIRST_MARRIAGE((short)21,"初婚"),

    REMARRIAGE((short)22,"再婚"),

    REMARRY((short)23,"复婚"),

    WIDOWED((short)30,"丧偶"),

    DIVORCE((short)40,"离婚"),

    NOT_MENTIONED((short)90,"未说明的婚姻状况");

    private Short code;

    private String name;

    private MarriageStatus(Short code, String name)
    {
        this.code = code;
        this.name = name;
    }

    public Short getCode()
    {
        return code;
    }

    public void setCode(Short code)
    {
        this.code = code;
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }
}
